<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>传媒设计广告公司网站 个人博客</title>
<meta content=" " name="keywords" />
<meta content="" name="description" />
<link rel="stylesheet" type="text/css" href="http://127.0.0.1/cms_edu/Template/heibai/css/css.css" />
</head>
<body >
<div id="doc">
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
 <div id="hd">
    <div class="clearfix pagetitle">
      <h1 class="sitename"><a href="/" title="传媒设计广告公司网站 个人博客"><img  class="ifixpng" src="http://demo.open.www313.com/documents/show/4807/logo.jpg"  alt="传媒设计广告公司网站 个人博客" /></a></h1>
    </div>
    <div class="clearfix sitenav">
      <div class="clearfix menu-main">
        <ul id="menuSitenav" class="clearfix">
          <li class="first-item"> <a href="<?php echo U('index/index');?>" class="home"><span>首页</span></a> </li>
          <?php
    $topCate=K('Category')->where('pid=0 AND is_show=1')->limit(1000)->order('csort ASC')->all();
    foreach ($topCate as $filed):
    $filed['url']=U('List/index',array('cid'=>$filed['cid']));
?>

          <li > <a href="<?php echo $filed['url'];?>" target="_self"><span><?php echo $filed['cname'];?></span></a> </li>
           
<?php
endforeach
?>
        </ul>
      </div>
    </div>
    <div id="sys-banner">
      <div id="banner-main" class="banner banner-main">
        <div class="banner-inner"><a href="/" target="_self"><img src="http://127.0.0.1/cms_edu/Template/heibai/img/4804.jpg" width="100%" alt="" /></a></div>
      </div>
    </div>
  </div>

   <div id="bd">
    <div id="homepg" class="bd-inner">
      <div class="clearfix layout-home">
        <div class="col-main">
          <div class="main-wrap">
            <div class="block first-block " id="block-slide-71357" rel="71357">
              <div class="block-head">
                <div class="head-inner">
                  <h2 class="title">最新作品</h2>                  
                </div>
              </div>
              <div class="block-content clearfix">
                <div class="item-list">
                  <ul class="clearfix">
                  	<?php
	//如果有分页的话
	if(0){
		$total = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->count();
		$pageObj = new Page($total,0,5);
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit($pageObj->limit())->order('sendtime DESC')->all();
		$page = $pageObj->show();
	}else{
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit('1000')->order('sendtime DESC')->all();
	}
    foreach ($arcData as $filed):
    $filed['url']=U('Content/index',array('aid'=>$filed['aid']));
   //组合分类的url
   $field['curl'] = U('List/index',array('cid'=>$field['cid']));
   
    //评论总数
    $filed['total'] = M('comment')->where("article_aid=" . $filed['aid'])->count();
    
?>

                    <li> <a title="<?php echo $filed['title'];?>" href="<?php echo $filed['url'];?>"><?php echo mb_substr($filed['title'],0,16,'utf-8');?>...</a> </li>
                    	
<?php
endforeach
?>
                  </ul>
                </div>
              </div>
              <div id="block-content-71357" class="block-content clearfix">
                <div class="content-text clearfix">
                
                </div>
              </div>
              <div class="block-foot">
                <div>
                  <div></div>
                </div>
              </div>
            </div>
            <div class="block last-block block-products " id="block-products-71358" rel="71358">
              <div class="block-head">
                <div class="head-inner">
                  <h2 class="title">服务项目</h2>
                  <div class="links"></div>
                </div>
              </div>
              <div class="block-content clearfix">
                <div class="item-list">
                  <ul class="clearfix">
                  	<?php
	//如果有分页的话
	if(0){
		$total = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->count();
		$pageObj = new Page($total,0,5);
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit($pageObj->limit())->order('sendtime DESC')->all();
		$page = $pageObj->show();
	}else{
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit('1000')->order('sendtime DESC')->all();
	}
    foreach ($arcData as $filed):
    $filed['url']=U('Content/index',array('aid'=>$filed['aid']));
   //组合分类的url
   $field['curl'] = U('List/index',array('cid'=>$field['cid']));
   
    //评论总数
    $filed['total'] = M('comment')->where("article_aid=" . $filed['aid'])->count();
    
?>

                    <li> <a title="<?php echo $filed['title'];?>" href="<?php echo $filed['url'];?>"><?php echo mb_substr($filed['title'],0,16,'utf-8');?></a> </li>
                    
<?php
endforeach
?>
                  </ul>
                </div>
              </div>
              <div class="block-foot">
                <div>
                  <div>-</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="col-sub">
          <div class="block first-block block-products " id="block-products-71355" rel="71355">
            <div class="block-head">
              <div class="head-inner clearfix">
                <h2 class="title">客户案例</h2>
                <div class="links"></div>
              </div>
            </div>
            <div class="block-content clearfix">
              <div class="sys-scroll-left-wrap">
                <div class="sys-scroll-left" id="sys-scroll-left-71355">
                  <table>
                    <tr>
                      <td id="sys-scroll-left-71355-a" class="sys-scroll-left-a"><table>
                          <tr>
                          	<?php
	//如果有分页的话
	if(0){
		$total = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->count();
		$pageObj = new Page($total,0,5);
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit($pageObj->limit())->order('sendtime DESC')->all();
		$page = $pageObj->show();
	}else{
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit('1000')->order('sendtime DESC')->all();
	}
    foreach ($arcData as $filed):
    $filed['url']=U('Content/index',array('aid'=>$filed['aid']));
   //组合分类的url
   $field['curl'] = U('List/index',array('cid'=>$field['cid']));
   
    //评论总数
    $filed['total'] = M('comment')->where("article_aid=" . $filed['aid'])->count();
    
?>

                            <td><div class="thumb"> <a href="<?php echo $filed['url'];?>" title="<?php echo $filed['title'];?>"><img src="http://127.0.0.1/cms_edu/<?php echo $filed['thumb'];?>" alt="<?php echo $filed['title'];?>" /></a> </div>
                              <div class="title"><a href="<?php echo $filed['url'];?>" title="<?php echo $filed['title'];?>"><?php echo $filed['title'];?></a></div></td>
                           
<?php
endforeach
?>
                          </tr>
                        </table></td>
                      <td id="sys-scroll-left-71355-b" class="sys-scroll-left-b"></td>
                    </tr>
                  </table>
                </div>
              </div>
            </div>
            <div class="block-foot">
              <div>
                <div></div>
              </div>
            </div>
          </div>
          <div class="block last-block block-articles " id="block-articles-71356" rel="71356">
            <div class="block-head">
              <div class="head-inner">
                <h2 class="title">最新文章</h2>
                <div class="links"></div>
              </div>
            </div>
            <div class="block-content clearfix">
              <div class="item-list">
                <ul class="clearfix">
                	<?php
	//如果有分页的话
	if(0){
		$total = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->count();
		$pageObj = new Page($total,0,5);
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit($pageObj->limit())->order('sendtime DESC')->all();
		$page = $pageObj->show();
	}else{
		$arcData = M()->join('__article__ a JOIN __category__ c ON a.category_cid=c.cid')->where('is_recycle=0')->limit('1000')->order('sendtime DESC')->all();
	}
    foreach ($arcData as $filed):
    $filed['url']=U('Content/index',array('aid'=>$filed['aid']));
   //组合分类的url
   $field['curl'] = U('List/index',array('cid'=>$field['cid']));
   
    //评论总数
    $filed['total'] = M('comment')->where("article_aid=" . $filed['aid'])->count();
    
?>

                  <li> <a title="<?php echo $filed['title'];?>" href="<?php echo $filed['url'];?>"><?php echo $filed['title'];?></a> </li>
                  
<?php
endforeach
?>
                </ul>
              </div>
            </div>
            <div class="block-foot">
              <div>
                <div>-</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
 <?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
  <div id="ft">
    <div class="ft-inner">
      <div class="ft-menu"  id="ft-menu"> 
      	<?php
    $topCate=K('Category')->where('pid=0 AND is_show=1')->limit(1000)->order('csort ASC')->all();
    foreach ($topCate as $filed):
    $filed['url']=U('List/index',array('cid'=>$filed['cid']));
?>

      	<a href="<?php echo $filed['url'];?>" target="_self"><?php echo $filed['cname'];?></a> | 
         
<?php
endforeach
?>
      </div>
      <div class="siteinfo" id="ft-siteinfo"> <a href=""></a>
        </p>
      </div>
    </div>
  </div>

</div>
</body>
</html>